package com.sg.model.app.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sg.framework.common.annotations.LikeFlag;
import com.sg.framework.common.annotations.OrderFlag;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 主表，有小版本（主表主体只能创建一个版本），表的类型（公共基础）
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_assist_step")  //2-9-01 步骤表
public class OmsAssistStep implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 步骤ID:
     */
    @TableId(value = "assist_step_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "assistStepId不能为空")
    private String assistStepId;

    /**
     * 用于业务场景ID:
     */
    @TableField(value = "biz_scene_id")
    @NotNull(message = "用于业务场景ID不能为空")
    @Schema(description = "用于业务场景ID")
    private String bizSceneId;

    /**
     * 业务场景标识:
     */
    @TableField(value = "biz_scene_code")
    @NotNull(message = "业务场景标识不能为空")
    @Schema(description = "业务场景标识")
    private String bizSceneCode;

    /**
     * 步骤名称:
     */
    @TableField(value = "step_name")
    @NotNull(message = "步骤名称不能为空")
    @Schema(description = "步骤名称")
    @LikeFlag(likeType = "LIKE")
    private String stepName;

    /**
     * 步骤编码:
     */
    @TableField(value = "step_name_code")
    @NotNull(message = "步骤编码不能为空")
    @Schema(description = "步骤编码")
    private String stepNameCode;

    /**
     * 编辑下“下一步”名称:
     */
    @TableField(value = "edit_assist_step_name")
    @NotNull(message = "编辑下“下一步”名称不能为空")
    @Schema(description = "编辑下“下一步”名称")
    private String editAssistStepName;

    /**
     * 修订下“下一步”名称:
     */
    @TableField(value = "change_assist_step_name")
    @NotNull(message = "修订下“下一步”名称不能为空")
    @Schema(description = "修订下“下一步”名称")
    private String changeAssistStepName;

    /**
     * 排序:
     */
    @TableField(value = "order_number")
    @NotNull(message = "排序不能为空")
    @Schema(description = "排序")
    @OrderFlag(orderType = "asc")
    private Long orderNumber;

    /**
     * 主体生命周期:
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档:
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;

    /**
     * 操作人就职记录ID:
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID:
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;

    /**
     * 发布人就职记录ID:
     */
    @TableField(value = "release_induction_id")
    @NotNull(message = "发布人就职记录ID不能为空")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;

    /**
     * 存档人就职记录ID:
     */
    @TableField(value = "archive_induction_id")
    @NotNull(message = "存档人就职记录ID不能为空")
    @Schema(description = "存档人就职记录ID")
    private String archiveInductionId;

    /**
     * 操作时间:
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    @OrderFlag(orderType = "desc")
    private Date operateTime;

    /**
     * 创建时间:
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 发布时间:
     */
    @TableField(value = "release_time")
    @NotNull(message = "发布时间不能为空")
    @Schema(description = "发布时间")
    private Date releaseTime;

    /**
     * 存档时间:
     */
    @TableField(value = "archive_time")
    @NotNull(message = "存档时间不能为空")
    @Schema(description = "存档时间")
    private Date archiveTime;

    /**
     * 是否作废:
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID:
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID:
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
